package cn.nawang.ebeim.api.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @ClassName: WarnMessage
 * @Description: TODO
 * @author huanghj
 * @date 2015年10月27日 下午2:26:49
 * @version v1.0
 */
@Entity
@Table(name = "tb_warn_mess", catalog = "ebeim")
public class WarnMessage {

  private int id;
  private int warnType;
  private int warnLevel;
  private long warnTime;
  private int warnPart;
  private String warnDesc;
  private String userId;

  @Id
  @Column(name = "id", unique = true, nullable = false, length = 45)
  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  @Column(name = "warn_type")
  public int getWarnType() {
    return warnType;
  }

  public void setWarnType(int warnType) {
    this.warnType = warnType;
  }

  @Column(name = "warn_level")
  public int getWarnLevel() {
    return warnLevel;
  }

  public void setWarnLevel(int warnLevel) {
    this.warnLevel = warnLevel;
  }

  @Column(name = "warn_time")
  public long getWarnTime() {
    return warnTime;
  }

  public void setWarnTime(long warnTime) {
    this.warnTime = warnTime;
  }

  @Column(name = "warn_part")
  public int getWarnPart() {
    return warnPart;
  }

  public void setWarnPart(int warnPart) {
    this.warnPart = warnPart;
  }

  @Column(name = "warn_desc")
  public String getWarnDesc() {
    return warnDesc;
  }

  public void setWarnDesc(String warnDesc) {
    this.warnDesc = warnDesc;
  }

  @Column(name = "user_id")
  public String getUserId() {
    return userId;
  }

  public void setUserId(String userId) {
    this.userId = userId;
  }

}
